# 时间分发
from .event import EventStore


class EventCenter:
    ''' 包装事件处理 '''

    __event = EventStore()

    def __init__(self):
        self.__event = EventCenter.__event        


    def registered(self, eventName, callback):
        self.__event.bind(eventName, callback) 


    def trigger(self, eventName, event):
        self.__event.target(eventName, event)        


    def remove(self, eventName):
        self.__event.remove(eventName)